<%@ page contentType="text/html; charset=UTF-8"
 pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/taglib.jsp"%>
<input type="hidden" name="id" value="${resource.id}"/>
<input type="hidden" name="resourceId" value="${resource.id}"/>
<p>
	<label>资源路径：</label>
	<input type="text" name="resource" value="${resource.resource}"/>
</p>
<p>
	<label>资源说明：</label>
	<textarea name="intro" rows="5" cols="40">${resource.intro}</textarea>
</p>
<p>
	<label>关联角色：</label>
	<c:forEach var="role" items="${roles}">
		<c:choose>
			<c:when test="${role.used}">
				<input type="checkbox" name="roleIds" value="${role.id}"
					checked="checked" />
			</c:when>
			<c:otherwise>
				<input type="checkbox" name="roleIds" value="${role.id}" />
			</c:otherwise>
		</c:choose>
		<c:out value="${role.cnname}" />
	</c:forEach>
</p>
<input type="submit" value="保存"/>
<input type="button" value="返回" class="fn-back"/>
<hs:validator className="org.projectname.entity.manager.Resource"/>